<?php
class App_Plugin_SetCookie extends Zend_Controller_Plugin_Abstract {
    function __construct()
    {
        if($_COOKIE){
            if(!key_exists('uid',$_COOKIE)){
                setcookie("uid", md5(rand(1, 1000*1000)), time()+100000000 * 100000000,'/');
            }
        }
    }
}
